<?php
/**
 *Template Name Posts: Detail template
 */
get_header();
get_template_part( 'slider2' );

$categoryId = 6;
$categories = get_category( $categoryId );
?>
<div class="container">
	
	<div class="webshop-header clear-fix">
		<div class="webshop-info">
			<h1><?php echo $categories->name;?></h1>
			<p><?php echo $categories->description;?></p>
		</div>
		<div class="webshop-img">
			<?php 
				$option = '_category_image' . $categoryId;
				$image = get_option($option);			
			?>
			<img src="<?php echo $image; ?>" alt="" />
		</div>
		<a id="btnWebshop-contact" href="?page_id=20">Contact</a>
	</div>
	
	<div class="content">
		<div class="template clear-fix" id="webshop-prd-detail">
			<?php
				$post_id = $post->ID;
				$post = get_post($post_id);
								
				if (has_post_thumbnail( $post_id )){
					the_post_thumbnail('large', array('class' => 'prd-image'));
				}  				
			?>				
			<h1><?php echo $post->post_title;?></h1>
			<p><?php echo $post->post_content;?></p>			
		</div>
		<a href="?cat=6" class="btnBack">TILBAGE</a>
	</div>
	
	
</div>
<?php get_footer(); ?>
